Jul 22
1
Google has updated its JavaScript SEO help document to add a section on how to properly inject canonical link tags using JavaScript. The document says Google does not recommend using JavaScript for this, however “it is possible to inject a rel=canonical link tag with JavaScript.”
Excerpt from:
Google Explains How To Inject Canonical Tags Using JavaScript In Updated Doc